/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entity;

import java.io.Serializable;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;

/**
 *
 * @author itachiu
 */

@Entity
@NamedQueries({
    @NamedQuery(name="findEmployeeNamePass",
        query="SELECT e "+
        "FROM Employee e "+
        "WHERE e.employeedName = :name AND "+
        "      e.password = :pass")
})
public class Employee implements Serializable{
    String employeedName;
    String password;
    @Id
    @GeneratedValue(strategy= GenerationType.AUTO)
    private Long id;

    public Employee() {
    }

    public String getEmployeedName() {
        return employeedName;
    }

    public void setEmployeedName(String employeedName) {
        this.employeedName = employeedName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    
    
}
